<template>
  <div id="app">
    <router-view v-if="isRouterAlive"></router-view>
  </div>
</template>
<script>
import { provide } from 'vue';

  export default{
    name:'App',
    data(){
      return{
        isRouterAlive:true,
      }
    },
    provide(){
      return{
        reload:this.reload,
      }
    },
    methods:{
      reload(){
        this.isRouterAlive = false;
        this.$nextTick(function(){
          this.isRouterAlive =true;
        })
      }
    }
  }
</script>
<style lang="scss" scoped>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  width: 100%;
  margin: 0 auto;
}

body {
  margin: 0 auto;
  padding: 0;
  max-width: 600px;
  min-width: 375px;
  
}

</style>
